// packageG/mycomponent/supplyChain/ticketResources/ticketResources.js
Component({
  /**
   * 组件的属性列表
   */
  options: {
    multipleSlots: true, // 复数插槽: 是
    addGlobalClass: true,
  },
  properties: {
    datas: {
      type: null,
    },
    component_id: {
      type: null,
    },
    page_id: {
      type: null,
    },
    bottomShowBol: {
      type: null,
    },
    bottomShowBolIndex: {
      type: null,
    },
    index: {
      type: null,
    },
    btnFlag: {
      type: null
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    ticketList:[]
  },
  lifetimes: {
    created() {
    },
    attached: function () {
    }
  },
  observers: {
  },
  ready() {
    this.setListData();
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toCate(event) {
      let id = event.currentTarget.dataset.id;
      wx.navigateTo({
        url: `/packageB/member/category/search_v2/search_v2?id=${id}`,
      });
    },
    setListData() {
      this.setData({
        ticketList:this.data.datas.list
      })
    }
  }
})
